package com.vshop.service.impl;

import com.vshop.entity.comentity.Country;
import com.vshop.mapper.CountryMapper;
import com.vshop.service.CountryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class CountryServiceImpl implements CountryService {
    @Resource
    CountryMapper countryMapper;

    @Override
    public List<Country> queryAllCountry() {
        return countryMapper.queryAllCountry();
    }

    @Override
    public List<Country> queryCountryByContinent(String continentName) {
        return countryMapper.queryCountryByContinent(continentName);
    }

    @Override
    public List<Country> queryCountryByContinentEN(String continentName) {
        return countryMapper.queryCountryByContinentEN(continentName);
    }

    @Override
    public String queryContinent(String mccs) {
        return countryMapper.queryContinent(mccs);
    }

    @Override
    public String queryContinentEN(String mccs) {
        return countryMapper.queryContinentEN(mccs);
    }

    @Override
    public String queryCountryEN(String mccs) {
        return countryMapper.queryCountryEN(mccs);
    }
}
